﻿using Microsoft.Data.SqlClient;
using System;
using System.Collections.Generic;
using System.Data.Common;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Coldairarrow.Util.Helper
{
    public static class SqlStringHelper
    {
        /// <summary>
        /// 根据占位符和值创建参数
        /// </summary>
        /// <param name="Name">占位符名称</param>
        /// <param name="Value">占位符的值</param>
        /// <returns></returns>
        public static DbParameter CreateParameter(string Name, object Value)
        {
            var Pama = new SqlParameter(Name, Value);
            return Pama;
        }


    }
}
